package com.cinyi.cyds.util;

/**
 * Created by root on 1/7/15.
 */
public class ContextHolder {
    private static final ThreadLocal<String> holder = new ThreadLocal<String>();

    public static void setDbType(String dbType) {
        holder.set(dbType);
    }

    public static String getDbType() {
        return (String) holder.get();
    }

    public static void clearDbType() {
        holder.remove();
    }
}